package com.mujin.keji.collectionsystem.utils;

import com.mujin.keji.collectionsystem.base.BaseVo;

public class AssambleReqUtil {
    /**
     * 组装入参
     * @param method
     * @param obj
     * @return
     */
    public static BaseVo assambleReqMap(String method, String session, Object obj){
        BaseVo vo = new BaseVo();
        vo.setSession(session);
        vo.setMethod(method);
        vo.setTimestamp(DateUtil.getNowTime(DateUtil.DEFAULT_DATE_FORMATTER));
        if(obj!=null){
            vo.setData(obj);
        }
        return vo;
    }
}
